package com.foreknow.service;

import com.foreknow.entity.Disease;

import java.util.List;

public interface DiseaseService {
    /**
     * 根据DiseCategoryID查询该分类下的所有疾病
     * @param DiseCategoryID
     * @return
     */
    List<Disease> selectDiseaseList(Integer DiseCategoryID);

    /**
     * 添加疾病种类
     * @param record
     * @return
     */
    int insertSelective(Disease record);

    /**
     * 模糊查询
     * @param disease
     * @return
     */
    List<Disease> selectDiseaseByDisease(Disease disease);
    /**
     * 根据疾病名字查询疾病的所有信息
     * @param diseasename
     * @return
     */
    Disease selectDisease(String diseasename);


    /**
     * 修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Disease record);

    /**
     * 根据 id 进行逻辑删除
     * @param id
     * @return
     */
    int deleteDisease(Integer id);
}
